package com.bjc2.builder.demo2;

/**
 * @program: DesignPattern
 * @description:
 * @author: bjc
 * @create: 2022-03-30 21:27
 */
public class Client {
    public static void main(String[] args) {
        //创建手机对象  通过构建者对象获取收集对象
        Phone phone = new Phone.Builder()
                .cpu("intel")
                .screen("三星屏幕")
                .memory("金士顿内存条")
                .mainboard("华硕主板")
                .build();

        System.out.println(phone);
    }
}
